package elion.com.theElion.fragmentMain;
//预警界面

import android.content.res.Resources;
import android.support.v4.app.Fragment;

import java.util.ArrayList;
import java.util.List;

import elion.com.elion.R;
import elion.com.theElion.fragmentWarning.DroughtFragment;
import elion.com.theElion.fragmentWarning.GancaoFragmentw;
import elion.com.theElion.fragmentWarning.RoucrFragmente;


/**
 * Created on 2017/6/1.
 */

public class WarningFragment extends MyTabFragment
{

    @Override
    public List<Fragment> setFragment() {
        List<Fragment> fragments = new ArrayList<>();
        DroughtFragment droughtFragment = new DroughtFragment();
        RoucrFragmente roucrFragmente = new RoucrFragmente();
        GancaoFragmentw gancaoFragmentw = new GancaoFragmentw();
        fragments.add(droughtFragment);
        fragments.add(gancaoFragmentw);
        fragments.add(roucrFragmente);
        return fragments;
    }

    @Override
    public String[] setTitles() {
        Resources res = getResources();
        String[] titles = res.getStringArray(R.array.WarningKind);
        return titles;
    }

    @Override
    public void setting() {

    }

    @Override
    public void tabLayoutSetting() {

    }
}
